/** 
* All Rights Reserved , Copyright (C) 2021 , 青岛鼎信通讯股份有限公司
* 
* IFileManageService
* 文件管理
* 
* 修改纪录
* 2021-03-13 版本：1.0 donghang 创建。
* @version 版本：1.0
* @author 作者：donghang
* 创建日期：2021-03-13
*/

package com.topscomm.center.service;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.Map;

import com.topscomm.center.ICenterService;
import com.topscomm.center.dao.IFileManageDao;
import com.topscomm.center.pojo.FileManageEntity;

public interface IFileManageService extends ICenterService<FileManageEntity, IFileManageDao> {
	Map<String, Map<String, Object>> getUploadBlocks(Map<String, Object> paraMap);

	String uploadFile(File file, Map<String, Object> dataMap) throws IOException;

	void uploadFileBlock(InputStream inputStream, Map<String, Object> dataMap);

	boolean mergeFileBlocks(FileManageEntity fileManageEntity);

	void deleteFile(Map<String, Object> paraMap);

	void saveFileTitlePage(Map<String, Object> dataMap);

	void processUploadBlocksValid(Map<String, Map<String, Object>> fileUploadBlocks);

	void deleteFileByIdentifier(String identifier);

	void fileProcessFinish(Map<String, Object> fileMap);

	void fileProcessError(Map<String, Object> fileMap, String errorReason);
}
